package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:22
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysNotifyConfig implements java.io.Serializable {
    private int checkInterval;

    /**
     * Attribute checkInterval Be Seted Falg
     */
    private boolean checkIntervalSetted = false;

    /**
    * Attribute checkInterval is Null Falg
    */
    private boolean checkIntervalNull = false;
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String notifyIcon;

    /**
     * Attribute notifyIcon Be Seted Falg
     */
    private boolean notifyIconSetted = false;

    /**
    * Attribute notifyIcon is Null Falg
    */
    private boolean notifyIconNull = false;
    private String notifyListener;

    /**
     * Attribute notifyListener Be Seted Falg
     */
    private boolean notifyListenerSetted = false;

    /**
    * Attribute notifyListener is Null Falg
    */
    private boolean notifyListenerNull = false;
    private String notifyMessage;

    /**
     * Attribute notifyMessage Be Seted Falg
     */
    private boolean notifyMessageSetted = false;

    /**
    * Attribute notifyMessage is Null Falg
    */
    private boolean notifyMessageNull = false;
    private String notifyName;

    /**
     * Attribute notifyName Be Seted Falg
     */
    private boolean notifyNameSetted = false;

    /**
    * Attribute notifyName is Null Falg
    */
    private boolean notifyNameNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String viewPath;

    /**
     * Attribute viewPath Be Seted Falg
     */
    private boolean viewPathSetted = false;

    /**
    * Attribute viewPath is Null Falg
    */
    private boolean viewPathNull = false;

    public SysNotifyConfig() {
        super();
    }

    /**
         * Get checkInterval
         *
         * @return int
         */
    final public int getCheckInterval() {
        return checkInterval;
    }

    /**
     * Set checkInterval
     *
     * @param int
     */
    final public void setCheckInterval(int checkInterval) {
        this.checkInterval = checkInterval;

        this.checkIntervalSetted = true;

        this.setCheckIntervalNull(false);
    }

    /**
     * Get checkInterval Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCheckIntervalSetted() {
        return this.checkIntervalSetted;
    }

    /**
     * Set checkInterval Null
     *
     */
    final public void setCheckIntervalNull() {
        this.checkIntervalNull = true;
    }

    final public void setCheckIntervalNull(boolean aNullFlag) {
        this.checkIntervalNull = aNullFlag;
    }

    final public boolean isCheckIntervalNull() {
        return this.checkIntervalNull;
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get notifyIcon
         *
         * @return String
         */
    final public String getNotifyIcon() {
        if (isNotifyIconNull()) {
            return null;
        } else {
            return StringUtils.trim(notifyIcon);
        }
    }

    /**
     * Set notifyIcon
     *
     * @param String
     */
    final public void setNotifyIcon(String notifyIcon) {
        this.notifyIcon = StringUtils.trim(notifyIcon);

        this.notifyIconSetted = true;

        this.setNotifyIconNull(this.notifyIcon == null);
    }

    /**
     * Get notifyIcon Has Been Setted
     *
     * @return boolean
     */
    final public boolean isNotifyIconSetted() {
        return this.notifyIconSetted;
    }

    /**
     * Set notifyIcon Null
     *
     */
    final public void setNotifyIconNull() {
        this.notifyIconNull = true;
    }

    final public void setNotifyIconNull(boolean aNullFlag) {
        this.notifyIconNull = aNullFlag;
    }

    final public boolean isNotifyIconNull() {
        return this.notifyIconNull;
    }

    /**
         * Get notifyListener
         *
         * @return String
         */
    final public String getNotifyListener() {
        if (isNotifyListenerNull()) {
            return null;
        } else {
            return StringUtils.trim(notifyListener);
        }
    }

    /**
     * Set notifyListener
     *
     * @param String
     */
    final public void setNotifyListener(String notifyListener) {
        this.notifyListener = StringUtils.trim(notifyListener);

        this.notifyListenerSetted = true;

        this.setNotifyListenerNull(this.notifyListener == null);
    }

    /**
     * Get notifyListener Has Been Setted
     *
     * @return boolean
     */
    final public boolean isNotifyListenerSetted() {
        return this.notifyListenerSetted;
    }

    /**
     * Set notifyListener Null
     *
     */
    final public void setNotifyListenerNull() {
        this.notifyListenerNull = true;
    }

    final public void setNotifyListenerNull(boolean aNullFlag) {
        this.notifyListenerNull = aNullFlag;
    }

    final public boolean isNotifyListenerNull() {
        return this.notifyListenerNull;
    }

    /**
         * Get notifyMessage
         *
         * @return String
         */
    final public String getNotifyMessage() {
        if (isNotifyMessageNull()) {
            return null;
        } else {
            return StringUtils.trim(notifyMessage);
        }
    }

    /**
     * Set notifyMessage
     *
     * @param String
     */
    final public void setNotifyMessage(String notifyMessage) {
        this.notifyMessage = StringUtils.trim(notifyMessage);

        this.notifyMessageSetted = true;

        this.setNotifyMessageNull(this.notifyMessage == null);
    }

    /**
     * Get notifyMessage Has Been Setted
     *
     * @return boolean
     */
    final public boolean isNotifyMessageSetted() {
        return this.notifyMessageSetted;
    }

    /**
     * Set notifyMessage Null
     *
     */
    final public void setNotifyMessageNull() {
        this.notifyMessageNull = true;
    }

    final public void setNotifyMessageNull(boolean aNullFlag) {
        this.notifyMessageNull = aNullFlag;
    }

    final public boolean isNotifyMessageNull() {
        return this.notifyMessageNull;
    }

    /**
         * Get notifyName
         *
         * @return String
         */
    final public String getNotifyName() {
        if (isNotifyNameNull()) {
            return null;
        } else {
            return StringUtils.trim(notifyName);
        }
    }

    /**
     * Set notifyName
     *
     * @param String
     */
    final public void setNotifyName(String notifyName) {
        this.notifyName = StringUtils.trim(notifyName);

        this.notifyNameSetted = true;

        this.setNotifyNameNull(this.notifyName == null);
    }

    /**
     * Get notifyName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isNotifyNameSetted() {
        return this.notifyNameSetted;
    }

    /**
     * Set notifyName Null
     *
     */
    final public void setNotifyNameNull() {
        this.notifyNameNull = true;
    }

    final public void setNotifyNameNull(boolean aNullFlag) {
        this.notifyNameNull = aNullFlag;
    }

    final public boolean isNotifyNameNull() {
        return this.notifyNameNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get viewPath
         *
         * @return String
         */
    final public String getViewPath() {
        if (isViewPathNull()) {
            return null;
        } else {
            return StringUtils.trim(viewPath);
        }
    }

    /**
     * Set viewPath
     *
     * @param String
     */
    final public void setViewPath(String viewPath) {
        this.viewPath = StringUtils.trim(viewPath);

        this.viewPathSetted = true;

        this.setViewPathNull(this.viewPath == null);
    }

    /**
     * Get viewPath Has Been Setted
     *
     * @return boolean
     */
    final public boolean isViewPathSetted() {
        return this.viewPathSetted;
    }

    /**
     * Set viewPath Null
     *
     */
    final public void setViewPathNull() {
        this.viewPathNull = true;
    }

    final public void setViewPathNull(boolean aNullFlag) {
        this.viewPathNull = aNullFlag;
    }

    final public boolean isViewPathNull() {
        return this.viewPathNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysNotifyConfig) == false) {
            return false;
        }

        SysNotifyConfig other = (SysNotifyConfig) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("viewPath=");
        buffer.append(this.viewPath);

        buffer.append("checkInterval=");
        buffer.append(this.checkInterval);

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("notifyIcon=");
        buffer.append(this.notifyIcon);

        buffer.append("notifyListener=");
        buffer.append(this.notifyListener);

        buffer.append("notifyMessage=");
        buffer.append(this.notifyMessage);

        buffer.append("notifyName=");
        buffer.append(this.notifyName);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("]");

        return buffer.toString();
    }
}
